<?php
class Socrelation extends AppModel {

	var $name = 'Socrelation';
	var $useDbConfig = 'socdual';
	var $displayField = 'name';

        var $hasMany = array(
                        'Soctypesrel' => array('className' => 'Soctypesrel',
                                                                'foreignKey' => 'socrelation_id',
                                                                'dependent' => false,
                                                                'conditions' => '',
                                                                'fields' => '',
                                                                'order' => '',
                                                                'limit' => '',
                                                                'offset' => '',
                                                                'exclusive' => '',
                                                                'finderQuery' => '',
                                                                'counterQuery' => ''
                        ),
        );

	function getRelations($params=array('limit'=>16)) {
		return $this->find('list', array('order'=>'percent DESC', 'limit'=>$params['limit']));
	}

}
?>
